package org.example.design.strategy.impl;

import org.example.design.strategy.ICouponDiscount;

import java.math.BigDecimal;

/**
 * @Classname NYGCouponDiscount
 * @Description N元购
 * @Date 2020/11/11 5:02 下午
 * @Created by xiangjd
 */
public class NYGCouponDiscount implements ICouponDiscount<Double> {

    /**
     * n元购购买
     * 1. 无论原价多少钱都固定金额购买
     */
    @Override
    public BigDecimal disCount(Double couponInfo, BigDecimal skuPrice) {
        return new BigDecimal(couponInfo);
    }
}
